package com.yy.cloud.controller;

import com.yy.cloud.service.ProviderServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date 2024/5/6
 */
@RestController
@RequestMapping("/provider")
@Slf4j
public class NacosProviderController {

    @Autowired
    private ProviderServiceImpl providerService;

    @GetMapping("/getName")
    public String getName() {
        log.info("我被调用了...");
        return providerService.getName();
    }
}
